package com.neusoft.neuiotms.dcam.fixed.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.jpa.model.AbstractAuditModel;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "neuiot_fixed_asset_life")
@org.hibernate.annotations.Table(appliesTo = "neuiot_fixed_asset_life", comment = "固定资产生命周期表")
public class AssetLifeCycle extends AbstractAuditModel {

    private static final long serialVersionUID = 1L;

    /** 资产编号 */
    @NotBlank(message = "资产编号不能为空")
    @Column(length = 255, nullable = false)
    private String code;

    /** 生命周期 */
    @Length(max = 255, message = "生命周期编号不能超过{max}位")
    @Column(length = 255, nullable = true)
    private String lifeCycle;

    /** 操作用户 */
    @Length(max = 255, message = "操作用户不能超过{max}位")
    @Column(length = 255, nullable = true)
    private String userName;

    /** 内容 */
    @Length(max = 255, message = "内容不能超过{max}位")
    @Column(length = 255, nullable = true)
    private String content;

    /** 工单号 */
    @Length(max = 255, message = "工单号不能超过{max}位")
    @Column(length = 255, nullable = true)
    private String workNum;
}
